﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace yoyo
{
    public partial class yoyoForm1 : Form
    {
        public yoyoForm1()
        {
            InitializeComponent();
            yoyoSettings.myPrefs.Load();

            chckDisableFacing.Checked = yoyoSettings.myPrefs.DisableAllFacement;
            chckDisableAllMovement.Checked = yoyoSettings.myPrefs.DisableAllMovement;

        }
        #region SaveButtons
        private void btnSaveConfigSettings_Click(object sender, EventArgs e)
        {
            yoyoSettings.myPrefs.Save();
            
        }
        #endregion SaveButtons
        private void chckDisableAllMovement_CheckedChanged(object sender, EventArgs e)
        {
            yoyoSettings.myPrefs.DisableAllMovement = chckDisableAllMovement.Checked;
        }

        private void chckDisableFacing_CheckedChanged(object sender, EventArgs e)
        {
            yoyoSettings.myPrefs.DisableAllFacement = chckDisableFacing.Checked;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //if (chckAlwaysRapidFire.Checked) { yoyoSettings.myPrefs.UseRapidFire = "boss"; }
            
            yoyoSettings.myPrefs.Save();
            Close();
        }
       
    }
}
